package com.deyuanyun.pic.insp.controller.dto;

import com.deyuanyun.pic.settings.domain.Domain;
import org.springframework.validation.Errors;

import java.io.Serializable;

/**
 * User: huanglw
 * Date: 15-7-27
 * Time: 下午3:58
 */
public interface Command<T extends Domain> extends Serializable {

    T toDomain(Errors errors);

    T toDomain();

    void fromDomain(T domain);

}
